<template>
    <div>
        <el-container>
            <el-header>
                <el-row type="flex">
                    <el-col :span="2">
                        <!-- 这里放置logo -->
                        <img class="logo" :src="logo" alt="Logo" />
                    </el-col>
                    <el-col :span="20">
                        <!-- 这里放置其他内容 -->
                        <h2 style="margin-top: 10px;">大学教室管理系统</h2>
                    </el-col>
                </el-row>
                <h2></h2>
            </el-header>
            <el-container>
                <Navi />
                <el-main>
                    <keep-alive>
                        <router-view name="table"></router-view>
                    </keep-alive>
                </el-main>
            </el-container>
        </el-container>
    </div>
</template>

<script>
import Navi from './Navi.vue'
export default {
    name: "Container",
    components: {
        Navi,
    },
    data() {
        return {
            logo: require('@/assets/bilibili.gif')
        }
    }
}
</script>

<style scoped>
.el-header {
    background-color: #545c64;
    color: #fff;
    text-align: center;
    line-height: 10px;
}

.el-footer {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    line-height: 60px;
}

.el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    line-height: 200px;
}

.el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    line-height: 40px;
}
.logo {
  width: 80px; /* 设置宽度 */
  /* height: auto; 高度自适应 */
}
</style>
    